package com.seawaterbt.cloud.serverfeign.service;

import com.seawaterbt.cloud.serverfeign.service.impl.HelloServiceImpl;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "SERVER-HI/",fallback = HelloServiceImpl.class)
public interface HelloService {

    @GetMapping(value = "/hi")
    String sayHello(@RequestParam(value = "name")String name);
}
